#import "IKeyedObject.h"
#import <objc/hashtable.h>

@implementation IKeyedObject

- initWithKey:(const char *)aKey
{
    [super init];
    key = NXCopyStringBufferFromZone(aKey, [self zone]);
    return(self);
}

- (const char *)key
{
    return(key);
}

- free
{
    NXZoneFree([self zone], key);
    return([super free]);
}

@end
